import {createStore} from './vuex'

const store = createStore({
    state() {
        return {
            userInfo: {
                username: 'xiaosong',
            }
        }
    },
    mutations: {
        upUserInfo (state, userInfo) {
            state.userInfo = userInfo
        }
    }
})

export default store